#!/usr/bin/env python
# coding=utf-8



from PyQt5.QtWidgets import QDialog
from PyQt5.QtCore import Qt
# from PyQt5.QtCore import Qt
from Ui_about import Ui_DialogAbout




class DialogAbout(QDialog, Ui_DialogAbout):
    def __init__(self, parent=None):
        super(DialogAbout, self).__init__(parent)
        self.setupUi(self)
        self.setFixedSize(self.width(),self.height())
        self.setWindowFlags(Qt.Dialog | Qt.CustomizeWindowHint | Qt.WindowTitleHint)
        # self.setWindowFlags(Qt.WindowMinimizeButtonHint | Qt.WindowMaximizeButtonHint)
        # self.setWindowFlags(Qt.FramelessWindowHint)


    def setVersion(self, ver):
        self.version = ver
        self.labelVersion.setText(self.version)
